import request from '@/utils/request'

// 品类层级关系
export function cascadelist (query) {
  return request({
    url: '/common/product/config/cascadelist',
    methods: 'get',
    params: query
  })
}

// 机型列表-厂商
export function getDeviceBrandList (query = {}) {
  return request({
    url: '/manager/report/getDeviceBrandList',
    methods: 'get',
    params: query
  })
}

// 系统版本列表-安卓版本
export function getOsversionList (query = {}) {
  return request({
    url: '/manager/report/getOsversionList',
    methods: 'get',
    params: query
  })
}

// 应用弹窗场景列表-场景
export function getSceneNameList (query = {}) {
  return request({
    url: '/manager/report/getSceneNameList',
    methods: 'get',
    params: query
  })
}

// 广告类型
export function getAdformatList (query = {}) {
  return request({
    url: '/manager/report/getAdformatList',
    methods: 'get',
    params: query
  })
}

// 广告场景
export function getAdvSceneList (query = {}) {
  return request({
    url: '/manager/report/getSceneList',
    methods: 'get',
    params: query
  })
}

// 获取媒体账号列表
export function getAccountList() {
  return request({
    url: '/common/medium/config/getAccountList',
    method: 'get',
  })
}

// 投放消耗数据-报表编辑
export function costEdit (data = {}) {
  return request({
    url: '/manager/report/costEdit',
    method: 'post',
    data: data
  })
}

// 投放消耗数据-报表编辑
export function baiduIncomeEdit (data = {}) {
  return request({
    url: '/manager/report/baiduIncomeEdit',
    method: 'post',
    data: data
  })
}

// 获取投放策略
export function getTrackList(query) {
  return request({
    url: '/common/product/config/tracklist',
    method: 'get',
    params: query
  })
}
